<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <input name="row[id]" type="hidden" value="{$id}">
    {for start="0" end="$count"}
    <div class="form-group">
        <label for="c-rank_{$i}" class="control-label col-xs-12 col-sm-2">第{$i+1}名:</label>
        <div class="col-xs-12 col-sm-4">
            <input class="form-control selectpage"
                   data-params='{"custom[room_id]":"{$id}"}'
                   data-source="room/users/index_extend"
                   id="c-rank_{$i}" name="row[rank][{$i}]"
                   type="text">
        </div>
    </div>
    {/for}

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>